<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增履约保函')" />
    <th:block th:include="include :: datetimepicker-css" />
    <th:block th:include="include :: bootstrap-fileinput-css"/>
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-agreement-add">
            <h4 class="form-header h4">项目信息</a></h4>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">业务员：</label>
                    <div class="col-sm-8">
                        <input name="userId" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">出函机构及对接人：</label>
                    <div class="col-sm-8">
                        <input name="xmChDjuser" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">保函类型：</label>
                    <div class="col-sm-8">
                        <select name="xmBhType" class="form-control" th:with="type=${@dict.getType('bh_type')}">
                            <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">受益人名称：</label>
                    <div class="col-sm-8">
                        <input name="xmSyName" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">受益人类型：</label>
                    <div class="col-sm-8">
                        <select name="xmSyType" class="form-control" th:with="type=${@dict.getType('xm_sy_type')}">
                            <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">项目名称：</label>
                    <div class="col-sm-8">
                        <input name="xmName" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">标段：</label>
                    <div class="col-sm-8">
                        <textarea name="xmNameLot" class="form-control"></textarea>
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">项目所在地省：</label>
                    <div class="col-sm-8">
                        <input name="xmSheng" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">项目所在地市：</label>
                    <div class="col-sm-8">
                        <input name="xmShi" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">项目所在地：</label>
                    <div class="col-sm-8">
                        <input name="xmAddress" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">项目类型：</label>
                    <div class="col-sm-8">
                        <select name="xmType" class="form-control" th:with="type=${@dict.getType('xm_type')}">
                            <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">是否特殊项目：</label>
                    <div class="col-sm-8">
                        <input name="xmSpecial" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">特殊项目名称：</label>
                    <div class="col-sm-8">
                        <input name="xmSpecialName" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">中标时间或合同签署时间：</label>
                    <div class="col-sm-8">
                        <div class="input-group date">
                            <input name="xmDate" class="form-control" placeholder="yyyy-MM-dd" type="text">
                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">中标金额：</label>
                    <div class="col-sm-8">
                        <input name="xmMoney" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">保函比例：</label>
                    <div class="col-sm-8">
                        <input name="xmBhProportion" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">工期：</label>
                    <div class="col-sm-8">
                        <input name="xmGongqi" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-1 control-label">招文上传url：</label>
                    <div class="col-sm-11">
                        <input type="hidden" name="xmArticleUrl">
                        <div class="file-loading">
                            <input class="form-control file-upload" id="xmArticleUrl" name="file" type="file">
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-1 control-label">上传中标通知url：</label>
                    <div class="col-sm-11">
                        <input type="hidden" name="xmZbUrl">
                        <div class="file-loading">
                            <input class="form-control file-upload" id="xmZbUrl" name="file" type="file">
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-1 control-label">合同文件url：</label>
                    <div class="col-sm-11">
                        <input type="hidden" name="xmContractUrl">
                        <div class="file-loading">
                            <input class="form-control file-upload" id="xmContractUrl" name="file" type="file">
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-1 control-label">受益人名称依据url：</label>
                    <div class="col-sm-11">
                        <input type="hidden" name="xmSyUrl">
                        <div class="file-loading">
                            <input class="form-control file-upload" id="xmSyUrl" name="file" type="file">
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-1 control-label">项目名称依据url：</label>
                    <div class="col-sm-11">
                        <input type="hidden" name="xmXmmcyjUrl">
                        <div class="file-loading">
                            <input class="form-control file-upload" id="xmXmmcyjUrl" name="file" type="file">
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-1 control-label">传保函依据url：</label>
                    <div class="col-sm-11">
                        <input type="hidden" name="xmBhyjUrl">
                        <div class="file-loading">
                            <input class="form-control file-upload" id="xmBhyjUrl" name="file" type="file">
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-1 control-label">工期依据url：</label>
                    <div class="col-sm-11">
                        <input type="hidden" name="xmGqyjUrl">
                        <div class="file-loading">
                            <input class="form-control file-upload" id="xmGqyjUrl" name="file" type="file">
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <h4 class="form-header h4">企业信息</a></h4>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">企业名称：</label>
                    <div class="col-sm-8">
                        <input name="qyName" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">企业省：</label>
                    <div class="col-sm-8">
                        <input name="qySheng" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">企业市：</label>
                    <div class="col-sm-8">
                        <input name="qyShi" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">企业地址：</label>
                    <div class="col-sm-8">
                        <input name="qyAddress" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">注册资金：</label>
                    <div class="col-sm-8">
                        <input name="qyZcMoney" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">企业成立时间：</label>
                    <div class="col-sm-8">
                        <div class="input-group date">
                            <input name="qyClDate" class="form-control" placeholder="yyyy-MM-dd" type="text">
                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">企业最高资质：</label>
                    <div class="col-sm-8">
                        <input name="qyZizhi" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">特殊情况：</label>
                    <div class="col-sm-8">
                        <input name="qySpecial" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">开票名称：</label>
                    <div class="col-sm-8">
                        <input name="qyKpName" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">税号：</label>
                    <div class="col-sm-8">
                        <input name="qyKpNum" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">开票电话：</label>
                    <div class="col-sm-8">
                        <input name="qyKpPhone" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">开票地址：</label>
                    <div class="col-sm-8">
                        <input name="qyKpAddress" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">开票开户行：</label>
                    <div class="col-sm-8">
                        <input name="qyKpBank" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">开户账号：</label>
                    <div class="col-sm-8">
                        <input name="qyKpBankNum" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">邮寄地址：</label>
                    <div class="col-sm-8">
                        <input name="qyKpSendAdress" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <h4 class="form-header h4">保函信息</a></h4>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">保函金额：</label>
                    <div class="col-sm-8">
                        <input name="bhMoney" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">保函格式：</label>
                    <div class="col-sm-8">
                        <input name="bhGeshi" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-1 control-label">格式上传url：</label>
                    <div class="col-sm-11">
                        <input type="hidden" name="bhGeshiUrl">
                        <div class="file-loading">
                            <input class="form-control file-upload" id="bhGeshiUrl" name="file" type="file">
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">特殊要求：</label>
                    <div class="col-sm-8">
                        <input name="bhRemark" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <h4 class="form-header h4">运营信息</a></h4>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">收费：</label>
                    <div class="col-sm-8">
                        <input name="fkMoney" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">付款凭证：</label>
                    <div class="col-sm-8">
                        <input name="fkUrl" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">合作方费用：</label>
                    <div class="col-sm-8">
                        <input name="fkHzMoney" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">合作方付款：</label>
                    <div class="col-sm-8">
                        <input name="fkHzUrl" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">公司收益：</label>
                    <div class="col-sm-8">
                        <input name="fkShouyi" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">返润扣税：</label>
                    <div class="col-sm-8">
                        <input name="fkFanrun" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">受理意见：</label>
                    <div class="col-sm-8">
                        <input name="yyAcceptanceOpinion" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">价格：</label>
                    <div class="col-sm-8">
                        <input name="yyPrice" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-1 control-label">补充资料url：</label>
                    <div class="col-sm-11">
                        <input type="hidden" name="yySupplyUrl">
                        <div class="file-loading">
                            <input class="form-control file-upload" id="yySupplyUrl" name="file" type="file">
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">特殊备注：</label>
                    <div class="col-sm-8">
                        <input name="yySpecialRemark" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-1 control-label">签约资料包url：</label>
                    <div class="col-sm-11">
                        <input type="hidden" name="yyContractData">
                        <div class="file-loading">
                            <input class="form-control file-upload" id="yyContractData" name="file" type="file">
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">资料包是否合格：</label>
                    <div class="col-sm-8">
                        <input name="yyContractHg" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">补充文件描述：</label>
                    <div class="col-sm-8">
                        <textarea name="yySupplyRemark" class="form-control"></textarea>
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">反担保签署：</label>
                    <div class="col-sm-8">
                        <input name="yyFandanbaoqianshu" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">邮寄单号：</label>
                    <div class="col-sm-8">
                        <input name="yyYoujidanhao" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">总费用：</label>
                    <div class="col-sm-8">
                        <input name="ywTotalMoney" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">银行成本：</label>
                    <div class="col-sm-8">
                        <input name="bankMoney" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">银行收款账户：</label>
                    <div class="col-sm-8">
                        <input name="bankAccount" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">是否收到：</label>
                    <div class="col-sm-8">
                        <input name="bankSf" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">银行成本2：</label>
                    <div class="col-sm-8">
                        <input name="bankMoney2" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">银行账户2：</label>
                    <div class="col-sm-8">
                        <input name="bankAccount2" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">是否收到2：</label>
                    <div class="col-sm-8">
                        <input name="bankSf2" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">返润：</label>
                    <div class="col-sm-8">
                        <input name="ywFanMoney" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">扣税：</label>
                    <div class="col-sm-8">
                        <input name="ywTaxMoney" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">业绩：</label>
                    <div class="col-sm-8">
                        <input name="ywYeji" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">是否开票：</label>
                    <div class="col-sm-8">
                        <input name="sfKp" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">出函日期：</label>
                    <div class="col-sm-8">
                        <div class="input-group date">
                            <input name="bhDate" class="form-control" placeholder="yyyy-MM-dd" type="text">
                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-4">
                <div class="form-group">
                    <label class="col-sm-4 control-label">邮寄单号：</label>
                    <div class="col-sm-8">
                        <input name="mailNum" class="form-control" type="text">
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <th:block th:include="include :: bootstrap-fileinput-js"/>
    <script th:inline="javascript">
        var prefix = ctx + "system/agreement"
        $("#form-agreement-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-agreement-add').serialize());
            }
        }

        $("input[name='xmDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='qyClDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='bhDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $(".file-upload").fileinput({
            uploadUrl: ctx + 'common/upload',
            maxFileCount: 1,
            autoReplace: true
        }).on('fileuploaded', function (event, data, previewId, index) {
            $("input[name='" + event.currentTarget.id + "']").val(data.response.url)
        }).on('fileremoved', function (event, id, index) {
            $("input[name='" + event.currentTarget.id + "']").val('')
        })
    </script>
</body>
</html>